package com.mankind.ssm.service;

import com.mankind.ssm.common.Page;
import com.mankind.ssm.pojo.Role;
import com.mankind.ssm.pojo.UserInfo;

import java.util.List;

/**
 * Created by Mankind on 2017/7/15.
 */
public interface RoleService {
    public List<Role> selectAllRole();
    public Integer getTotalNumber();
    public Integer getTotalNumber(String text);
    public Page<Role> getRoleByPage(int pageSize, int currentPage);
    public Page<Role> fuzzyQueryByPage(int currentPage,int pageSize,String text);
    public Role getRoleById(Integer id);
    public void insertRole(Role role);
    public void deleteByRoleId(Integer roleId);
    public void updateRole(Role role);
}
